import request from '@/utils/request'

//获取用户信息
export const customerInfoService = () => {
    return request.get('/Customer/customerInfo');
}

//更新用户信息
export const customerInfoUpdateService = (customerInfo: any) => {
    return request.post('/Customer/update',customerInfo);
}

//更新用户密码
export const customerPasswordUpdateService = (params: Map<string, string>) => {
    const paramsObject = Object.fromEntries(params);
    return request.post('/Customer/updatePassword',paramsObject);
}

//更新用户头像
export const customerAvatarUpdateService = (imageURL: string) => {
    const data = { file: imageURL};
    return request.post('/Customer/updateImage', data);
}